# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=Convert-BinHex
pkgname="perl-${_realname}"
pkgver=1.123
pkgrel=2
pkgdesc="Perl module to extract data from Macintosh BinHex files"
arch=('any')
url="http://search.cpan.org/dist/Convert-BinHex/"
license=('PerlArtistic')
depends=('perl')
options=('!emptydirs')
install=${pkgname}.install
source=("http://search.cpan.org/CPAN/authors/id/S/ST/STEPHEN/${_realname}-$pkgver.tar.gz")
md5sums=('6957dee877c64918066ae27ca6069bfe')

build() {
  cd "${srcdir}/${_realname}-${pkgver}"

  # install module in vendor directories.
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
